import styled from "styled-components"

export const HomeWrapper = styled.div`
    //background: red;
    overflow: hidden;
    width: 960px;
    margin: 0 auto;
`

export const HomeLeft = styled.div`
    float: left;
    // background: aqua;
    width: 625px;
    margin-left: 15px;
    padding-top: 30px;
    .img_banner{
        width: 625px;
        height: 270px;
    }
`

export const HomeRight = styled.div`
    float: right;
    //background: green;
    width: 280px;
    // width: 240px; 原本的
`


export const TopicWrapper = styled.div`
    padding: 20px 0 10px 0;
    overflow: hidden;
    //background: red;
    margin-left: -18px;
    border-bottom: 1px solid #dcdcdc;
`

export const TopicItem = styled.div`
    float: left;
    height: 32px;
    line-height: 32px;
    margin-left: 18px;
    margin-bottom: 18px;
    padding-right: 10px;
    background: #f7f7f7;
    font-size: 14px;
    color: #000;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    .topic_img{
        height:32px;
        width:32px;
        display: block;
        float: left;
        margin-right: 10px;
    }
`


export const MoreTopic = styled.a.attrs({
    href: "/detail"
})`
    float: left;
    color: #cccccc;
    font-size: 14px;
    margin-left: 20px;
    height: 32px;
    padding-top: 10px;
    text-align: center;
`

export const Lists = styled.div`

`

export const ListItem = styled.div`
    overflow: hidden;
    padding: 20px 0;
    border-bottom: 1px solid #dcdcdc;
    .list_img {
        display: block;
        width: 125px;
        height: 100px;
        float: right;
        border-radius: 10px;
    }
`

export const ListInfo = styled.div`
    width: 500px;
    float: left;
    .list_title{
        font-weight: bold;
        line-height: 27px;
        font-size: 18px;
        padding: 20px 0;
    }
    .list_desc{
        margin: 0 0 8px;
        font-size: 13px;
        line-height: 24px;
        color: #999;
    }
    .list_info{
        padding-right: 0!important;
        font-size: 12px;
        font-weight: 400;
        line-height: 20px;
    }
`

export const RecommendWrapper = styled.div`
    margin: 30px 0;
    width: 280px;
`
export const RecommendItem = styled.div`
    width: 280px;
    height: 50px;
    background: url(${ (props) => props.imgUrl});
    background-size: contain;
`


export const WiterWrapper = styled.div`
    width: 278px;
    border: 1px solid #dcdcdc;
    border-radius: 3px;
    height: 300px;
    line-height: 300px;
    text-align: center;
`

export const LoadMore = styled.div`
    width: 100%;
    height: 40px;
    line-height: 40px;
    margin: 30px 0;
    cursor: pointer;
    background: #a5a5a5;
    text-align: center;
    border-radius: 20px;
    color: #fff;
`

export const BackToTop = styled.div`
    position: fixed;
    bottom: 5px;
    right: 20px;
    width: 40px;
    height: 40px;
    padding: 10px;
    box-sizing: border-box;
    font-size: 20px;
    line-height: 20px;
    cursor: pointer;
    background: aqua;
    text-align: center;
    border-radius: 10px;
    color: #fff;
`
